//
//  MTPhotoCell.m
//  ShiShiBang
//
//  Created by 宋宝强 on 16/9/7.
//  Copyright © 2016年 motianjituan. All rights reserved.
//

#import "MTPhotoCell.h"
#import "MTPhotoItem.h"
#import <UIImageView+WebCache.h>

@interface MTPhotoCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UIImageView *photoImage;

@end
@implementation MTPhotoCell


-(void)setPhoto:(MTPhotoItem *)photo
{
    _photo = photo;
    
    //图片
    [self.photoImage sd_setImageWithURL:[NSURL URLWithString:photo.small_url] placeholderImage:nil];
    
    //文字
    self.titleLabel.text = photo.title;
    
    
    
}
@end
